home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / A-B / 7 Balloons!.cpt / Balloons! / stack_-1.xml < prev    next >
Extensible Markup Language  |  1991-08-28  |  4KB  |  28 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>8</cardCount>
  7.     <cardID>2979</cardID>
  8.     <listID>7943</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on openStackglobal isSixif item 4 of the screenRect <= 342 then hide menuBarhide msgcheckHelpMgrif isSix then exit openStackif balloons("isOn") then put "On" into balloonStatuselse put "Off" into balloonStatusget balloons("On")go cd 1 -- in case user popped cdput the loc of btn "on/off" into tipset the hilite of btn "on/off" to trueput Balloons("ShowPICT", 1515, tip) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowPICT", 1515, tip) into helpResultend repeatput the ticks into waitStartrepeat until the ticks - waitStart >= 180if the mouseClick then exit repeatend repeatget balloons(balloonStatus) -- restoreif not balloons("isOn") then set the hilite of btn "on/off" to falseremoveABalloon -- in case status = onend openStackon checkHelpMgrglobal isSixput (balloons("isOn") contains "Error") into isSixif isSix thenanswer "This stack is fully functional only under " ¬¨& "System 7.0 when the Help Manager is present." ¬¨& "The Help Manager is not detected on this Mac. You may " ¬¨& "read the information in this stack without accessing the " ¬¨& "help balloons, or you may return to your Home stack." ¬¨with "Home" or "Continue"if it is "home" thengo homeexit to HyperCardend ifend ifend checkHelpMgron errorMsgglobal isSixif isSix thenanswer "Cannot turn on Balloon Help; the Help Manager is not present on this Macintosh."exit to HyperCardend ifend errorMsg------------------ Balloon Help Handlers and Functions -----------------on ShowABalloon helpMessage,location,versionif location is empty then put calcTip() into locationif version is empty then put 0 into versionput Balloons("Show",helpMessage,location,version) into helpResultrepeat until "-853" is not in helpResultput Balloons("Show",helpMessage,location, version) into helpResultend repeatend ShowABalloonon ShowAPict pictResourceIDput calcTip() into tipput Balloons("ShowPICT", pictResourceID, tip) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowPICT", pictResourceID, tip) into helpResultend repeatend ShowAPicton ShowAString STRResourceID, theTip, versionif theTip is empty then put calcTip() into tipput Balloons("ShowSTR", STRResourceID, tip, version) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowSTR", STRResourceID, tip, version) into helpResultend repeatend ShowAStringon ShowASTRLIst STRResourceID, index, theTip, versionif theTip is empty then put calcTip() into tipput STRResourceID && "," && index into resourceRecordput Balloons("ShowSTRList", resourceRecord, tip, version) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowSTRList", resourceRecord, tip, version) into helpResultend repeatend ShowASTRListon RemoveABalloonget Balloons("Remove")end RemoveABalloonfunction calcTipput the botRight of the target into tipsubtract 10 from item 1 of tipsubtract 10 from item 2 of tipreturn tipend calcTip</script>
  17.     <background id="2740" file="background_2740.xml" name="Contents" />
  18.     <background id="3999" file="background_3999.xml" name="Balloons" />
  19.     <card id="2979" file="card_2979.xml" marked="false" name="title" owner="2740" />
  20.     <card id="7651" file="card_7651.xml" marked="false" name="Copyright/License" owner="2740" />
  21.     <card id="4139" file="card_4139.xml" marked="false" name="General Syntax" owner="3999" />
  22.     <card id="4575" file="card_4575.xml" marked="false" name="Utility Calls" owner="3999" />
  23.     <card id="5335" file="card_5335.xml" marked="false" name="Standard Display Calls" owner="3999" />
  24.     <card id="5879" file="card_5879.xml" marked="false" name="Optional Parameters" owner="3999" />
  25.     <card id="6352" file="card_6352.xml" marked="false" name="Create Strings" owner="3999" />
  26.     <card id="6726" file="card_6726.xml" marked="false" name="Error Messages/Return Values" owner="3999" />
  27. </stack>
  28.